﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Diagnostics;

namespace WpfSessionTest
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
            //this.SessionEnding += new SessionEndingCancelEventHandler(App_SessionEnding);

            //var listener = new ConsoleTraceListener() { TraceOutputOptions = TraceOptions.Timestamp | TraceOptions.Callstack };
            //Trace.Listeners.Add(listener);

            //System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-CN");
            //var listener = new ConsoleTraceListener() { TraceOutputOptions = TraceOptions.DateTime};
            //Trace.Listeners.Add(listener);

            //Trace.WriteLine(DateTime.Now);
            //Trace.TraceInformation("hello world");

            //Trace.TraceError("error{0}", "dodo");
            //Trace.TraceWarning("warning{0}","dddd");
            LogHelper.Init();
        }

        //void App_SessionEnding(object sender, SessionEndingCancelEventArgs e)
        //{
        //    Trace.WriteLine("Session Ending");
        //}
    }
}
